<extend name="Public/user"/>
<block name="user-right">
	<!--main_right-->
	<div class="main_r f_fr">
		<div class="user_kx">
			<h3 class="user_kx_title">
				代购列表

			</h3>
		</div>
		<div class="input-group f_fr" style="width:180px; margin-right:10px;">
			<input type="text" class="form-control">
                              <span class="input-group-btn">
                                <button class="btn btn-default" type="button" style="background:#F00; color:#FFF;">搜索</button>
                              </span>
		</div>
		<div class="user_kx">
			<ul class="nav nav-tabs" role="tablist">
				<li role="presentation" class="<eq name="status" value="">active<else /></eq>"><a href="{:url('User/daigou')}">{:lang('all')}</a></li>
				<li role="presentation" class="<eq name="status" value="1">active<else /></eq>"><a href="{:url('User/daigou','status=1')}">{:lang('pending_pay')}</a></li>
				<li role="presentation" class="<eq name="status" value="2">active<else /></eq>"><a href="{:url('User/daigou','status=2')}">{:lang('yifukuan')}</a></li>
				<li role="presentation" class="<eq name="status" value="3">active<else /></eq>"><a href="{:url('User/daigou','status=3')}">{:lang('yiqueren')}</a></li>
				<li role="presentation" class="<eq name="status" value="4">active<else /></eq>"><a href="{:url('User/daigou','status=4')}">{:lang('yicaigou')}</a></li>
				<li role="presentation" class="<eq name="status" value="5">active<else /></eq>"><a href="{:url('User/daigou','status=5')}">{:lang('storage')}</a></li>
				<li role="presentation" class="<eq name="status" value="6">active<else /></eq>"><a href="{:url('User/daigou','status=6')}">{:lang('library')}</a></li>
			</ul>

			<div style="padding:10px;">
				<if condition="$list">
					<volist name="list" id="v">
						<table class="yubao-add yubao-list" cellpadding="0" cellspacing="0" style="line-height: 25px;">
							<tr>
								<th colspan="4" style="padding:0 10px;text-align: left;">代购单号:{$v.dgsn}&nbsp;&nbsp;|&nbsp;&nbsp;{$v.consignee}&nbsp;&nbsp;|&nbsp;&nbsp;{$v.addtime|date="Y-m-d H:i:s",###}&nbsp;&nbsp;|&nbsp;&nbsp;{$v.status|getdaigoustatus}</th>
							</tr>
							<volist name="v.goods" id="g">
								<tr>
									<td>
										<div class="fl">
											<a href="{$g.goodsurl}" target="_blank" title="{$g.goodsname}">
												<img src="{$g.goodsimg}" width="60" height="60"></a>
										</div>
										<div class="fl" style="width:300px;font-size: 12px;padding-left: 10px;">
											<a href="{$g.goodsurl}" target="_blank" style="color:green;">{$g.goodsname}</a>
											<br>
											<span>尺寸：{$g.goodssize} &nbsp; 颜色：{$g.goodscolor}</span>
											<br>
											<span>备注：{$g.goodsremark}</span>
										</div>
									</td>
									<td>快递单号：<if condition="$g.kdsn neq ''"><a href="{:url('User/yubaolist','kdsn='.$g['kdsn'])}">{$g.kdsn}</a><else />暂无</if><br><br>国际单号：<if condition="$g.bgsn neq ''"><a href="{:url('User/baoguolist','keywords='.$g['bgsn'])}">{$g.bgsn}</a><else />暂无</if></td>
									<if condition="$key eq 0">
										<td rowspan="{$v.goodscount}" >
											￥: {$v.totalprice}(日元) <br>
											<if condition="$v.status eq 1">
												<div style="text-align: center;margin-top: 5px;"><a href="{:url('User/paydaigou','id='.$v['id'])}" style="display:inline-block;background: red;color: #fff;padding: 2px 2px;">支付</a> | <a href="javascript:void(0);" style="display:inline-block;background: red;color: #fff;padding: 2px 2px;" did="{$v.id}" class="deldaigou">删除</a></div>
											</if>
										</td>

										<td  rowspan="{$v.goodscount}"><a href="{:url('User/daigouview','id='.$v['id'])}">查看详情</a></td>
									</if>
								</tr>
							</volist>

						</table>
						<div class="blank"></div>
					</volist>
					<else />
					{:lang('no_infos')}
				</if>
				<div class="page">{$_page}</div>
			</div>
		</div>
	</div>
</block>